<div id='profile_photo'>
  <?php echo $this->itemPhoto($this->subject()) ?>
  <?php $viewer = Engine_Api::_()->user()->getViewer();
  if ($viewer->getIdentity() && $this->user->isOwner($viewer) ): ?>
  	<ul class="webcam_links">
          <?php if ($this->web_cam_on):?>
  	  <li><?php echo $this->htmlLink(array('route' => 'default', 'module' => 'avatar', 'controller' => 'edit', 'action' => 'getwebcam'), $this->translate('Take a WebCam Photo'), array('class' => 'smoothbox buttonlink webcam_button_link' )) ?></li>
          <?php endif;?>
          <?php if ($this->avatar_collection_on):?>
	  <li><?php echo $this->htmlLink(array('route' => 'default', 'module' => 'avatar', 'controller' => 'edit', 'action' => 'getavatarcollection'), $this->translate('Select Avatar'), array('class' => 'smoothbox buttonlink webcam_button_link2' )) ?></li>
          <?php endif;?>
  	  <li><?php echo $this->htmlLink(array("route" => "user_extended",
                                        "controller" => "edit",
                                        "action" => "photo"),
                                   $this->translate('Edit Photo'), array('class' => 'buttonlink editphoto_button_link'))?></li>
          
  	</ul>
  <?php endif; ?>
</div>
